package org.shj.pattern.builder

class Iphone extends ProductLine{
  val product = new Product
  
  def installCore ={
    product.addPart("苹果内核")
  }
  
  def installGPS{
    product.addPart("苹果GPS")
  }
  
  def installBattery{
    product.addPart("3000毫安电池")
  }
  
  def installShell{
    product.addPart("苹果外壳")
  }
  
  def getProduct : Product = {
    product
  }
}